package com.ms.hotevent.dao;

import com.ms.hotevent.entity.Event;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EventDao {

    List<Event> query(@Param("pageIndex") int pageIndex,
                      @Param("pageRows") int pageRows,
                      @Param("event") Event event,
                      @Param("sort") String sort,
                      @Param("order") String order);

    int queryRowsCount(Event event);

    Event getOne(Integer id);

    void add(Event event);

    void updateSearchIndex(Event event);
}
